package com.probiz.estore.common.model.customer;

import com.probiz.estore.common.model.product.Product;


public class FavoriteProduct extends Favorite {

	private static final long	serialVersionUID	= 6083490135626820189L;
	
	private Product product;

	public FavoriteProduct () {
		super();
	}
	
	public String getFavoriteName () {
		if (product != null)
			return product.getProductName();
		else
			return "";
	}

	public FavoriteProduct (Integer in_favoriteId) {
		super (in_favoriteId);
	}

	public Integer getItemId() {
		if (product != null) {
			return product.getProductId();
		} else
			return super.getItemId();
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
	@Override
	public int hashCode() {
		return super.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}
	
	
}
